row = eval(input('请输入菱形行数：'))
while row%2==0:
    row = eval(input('请重新输入行数：'))
else:
    p_row=int((row+1)/2)
    for i in range(0, p_row):
        # 倒三角形
        for j in range(0, p_row - i):
            # print('&',end='')
            print(' ', end='')
        # 1,3,5,7,9...等腰三角形 range(1,2),range(1,4),range(1,6),range(1,8)
        for k in range(1, i * 2):
            print('*', end='')
        print()

#下半部分
bottom_row = row//2
for i in range(0,bottom_row+1):
     for j in range(0, i):
         print(' ', end='')
     for k in range(0,2*bottom_row-2*i+1):
         print('*', end='')
     print()